package com.inyaa.web.feign;

import com.inyaa.base.bean.BaseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.data.domain.Page;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

@FeignClient("inyaa-admin")
public interface InyaaAdminFeignService {

    @GetMapping("/blog/findBlogList")
    BaseResult<Page<Object>> findBlogList(@RequestParam(value = "status") Boolean status, @RequestParam(value = "isHot") Boolean isHot);

    @GetMapping("/blog/archive/list")
    BaseResult<List<Object>> archive();

    @GetMapping("/blog/info")
    BaseResult<Object> info(@RequestParam(value = "id") Integer id);

    @GetMapping("/menu/findMenuList")
    public BaseResult<List<Object>> findMenuList(Boolean enable);

    @GetMapping("/config/findAll")
    public BaseResult<Map<String, Object>> getConfig(@RequestParam(value = "type") Integer type);
}
